EntryCreator

@ApiStatus.Experimental
fun interface EntryCreator

Handles creating DynamicListWidget.Entry, separate and distinct from a config-level Entry

Author

fzzyhmstrs

Since

0.6.0

Inheritors

Types

Link copied to clipboard

Wrapper of information needed to create a new GUI entry.

Link copied to clipboard
class CreatorContext(val scope: String, val groups: LinkedList<String>, val client: Boolean, val texts: Translatable.Result, val annotations: List<Annotation>, val actions: Set<Action>, val misc: EntryCreator.CreatorContextMisc)

Context provided by the screen manager for building a new Creator

Link copied to clipboard
open class CreatorContextKey<T>

Key for data stored in CreatorContextMisc

Link copied to clipboard

Functions

Link copied to clipboard

Builds one or more DynamicListWidget.Entry from provided CreatorContext. These entries are used to build config GUIs, being the "building block" of the settings list.

Link copied to clipboard
open fun prepare(scope: String, groups: LinkedList<String>, annotations: List<Annotation>, globalAnnotations: List<Annotation>)

Called in the prepare stage of screen building to perform any necessary pre-entry-creation tasks.